package com.hamster.crm.service;

import com.hamster.crm.pojo.User;
import com.hamster.crm.pojo.UserRole;

import java.util.List;

/**
 * @author Tarry
 * @create 2020/1/2 10:25
 */
public interface UserRoleService {
    void insertRole(UserRole userRole);

    List<UserRole> listRoles();

    List<User> listUserByRole(String roleId);

    void insertRoleUser(String roleId, List<String> idList);

    void deleteRoleUser(String roleId, String userId);

    void deleteRole(String roleId);
}
